<?php

namespace App\Decorate\Dasheng\Bian;

use App\Decorate\Dasheng\BianAbstructDecorate;
use App\Decorate\Dasheng\CanBianInterface;

class Niao extends BianAbstructDecorate
{

    private $name;

    public function __construct(CanBianInterface $shenxian)
    {
        parent::__construct($shenxian);
        $this->name = '鸟';
    }

    public function getName()
    {
        return  $this->shenxian->getName() . "~~~" .$this->name;
    }

    public function getCommond()
    {
        return $this->shenxian->getName() . '申请变' . $this->getName() ."\n";
    }
}
